package cn.javass.dp.state.example1;

/**
 * 客户感兴趣的接口，通常会维护一个State类型的实例
 */
public class Context {

    private State state;

    public void setState(State state) {
        this.state = state;
    }

    public void request(String sampleParameter) {
        state.handle(sampleParameter);
    }
}
